package com.hsy.crm.web.domain.entity;

import com.hsy.crm.web.domain.cm.Validate;

import javax.persistence.Column;
import javax.persistence.Table;

@Table(name = "t_receipt_order")
public class ReceiptOrder extends BaseEntity {

    /**
     * 1收款2付款
     */
    @Validate
    @Column(length = 20)
    private Integer type;

    @Validate
    @Column(length = 20)
    private Long relationId;

    @Validate
    @Column(length = 20)
    private Integer relationType;

    @Validate
    @Column(length = 20)
    private Long debtMoney;

    /**
     * 累计核销金额 默认值0
     */
    @Column(length = 20)
    private Long verificateMoney;

    @Validate
    @Column(length = 20)
    private Long totalMoney;

    @Column(length = 20)
    private Long companyId;

    @Validate
    @Column(length = 20)
    private Long receiptUserId;

    @Column(length = 23,unique=true)
    private String code;

    /**
     * 是否核销 （0单纯的收款   1收款并选择了核销单据）
     */
    @Column(length = 20)
    private Integer isVerificate;

    @Validate
    @Column(length = 20)
    private Long date;

    @Column(length = 30)
    private String remarks;

    @Validate
    @Column(length = 11)
    private Integer status;

    @Validate
    private Long createUserId;

    @Validate
    private Long createTime;

    @Validate(insert=false,update=true)
    private Long updateUserId;

    @Validate(insert=false,update=true)
    private Long updateTime;

    public Integer getIsVerificate() {
        return isVerificate;
    }

    public void setIsVerificate(Integer isVerificate) {
        this.isVerificate = isVerificate;
    }

    public Long getVerificateMoney() {
        return verificateMoney;
    }

    public void setVerificateMoney(Long verificateMoney) {
        this.verificateMoney = verificateMoney;
    }

    public Long getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Long totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relationId) {
        this.relationId = relationId;
    }

    public Integer getRelationType() {
        return relationType;
    }

    public void setRelationType(Integer relationType) {
        this.relationType = relationType;
    }

    public Long getDebtMoney() {
        return debtMoney;
    }

    public void setDebtMoney(Long debtMoney) {
        this.debtMoney = debtMoney;
    }

    public Long getReceiptUserId() {
        return receiptUserId;
    }

    public void setReceiptUserId(Long receiptUserId) {
        this.receiptUserId = receiptUserId;
    }

    public Long getDate() {
        return date;
    }

    public void setDate(Long date) {
        this.date = date;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }
}
